package com.zikao.question.service.impl;

import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zikao.common.utils.PageUtils;
import com.zikao.common.utils.Query;

import com.zikao.question.dao.Praise2Dao;
import com.zikao.question.entity.Praise2Entity;
import com.zikao.question.service.Praise2Service;


@Service("praise2Service")
public class Praise2ServiceImpl extends ServiceImpl<Praise2Dao, Praise2Entity> implements Praise2Service {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<Praise2Entity> page = this.page(
                new Query<Praise2Entity>().getPage(params),
                new QueryWrapper<Praise2Entity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<Praise2Entity> selectByMap(Map<String, Object> params) {
        return baseMapper.selectByMap(params);
    }

}